-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds _connection object to bigquery magics context. #8192
Conversation
This is the output of nox:
Looks good except for coverage, which has this table:
I'm not totally sure how to increase coverage / what's missing, I thought the test I added pretty thoroughly tests the Connection object? Perhaps I need one that tests not setting it? |
Correct. That's saying we're missing the branch where |
bigquery/tests/unit/test__helpers.py
Outdated
@@ -782,6 +782,17 @@ def _make_field(field_type, mode="NULLABLE", name="testing", fields=()): | |||
return SchemaField(name=name, field_type=field_type, mode=mode, fields=fields) | |||
|
|||
|
|||
def _make_connection(*responses): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is tests for _helpers
, not helpers for tests. I'd recommend creating a separate tests/unit/helpers.py
if you plan to do this refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks! I was wondering why the filename looked different...
8e22636
to
2578e54
Compare
Done! |
As recommended by: #8024 (comment).